package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 *
 * 升级缴纳保证金记录
 *
 * @since 2023-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_shop_level_record")
public class H2ShopLevelRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 升级到的店铺等级
     */
    private Integer shopLevelId;

    /**
     * 保证金
     */
    private BigDecimal earnestMoney;

    /**
     * 是否缴纳保证金  1：已缴纳 0：未缴纳
     */
    private Integer payMoneyFlag;
    /**
     * 是否返还缴纳保证金  1：已返还  0：未返还
     */

    private Integer returnMoneyFlag;

    /**
     * 达到升级时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
